<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<title>Insert title here</title>
	</head>
	<body>
		<ui:composition template="/view/templates/layout.xhtml">
			<ui:define name="content">
				<p>
					<h:link value="#{appResources['label.link.News']}" outcome="newsList" />
					&gt;&gt;
					#{appResources['label.viewnews.title']}<br/>
				</p>
				<h:form>
					<p class="news-label">
						<h:outputText  value="#{appResources['label.viewnews.newstitle']}" />
					</p>
					<p class="news-content"> #{newsBean.currentNews.title} </p>
					<p class="news-label">
						<h:outputText  value="#{appResources['label.viewnews.newsdate']}" />
					</p>
					<p class="news-content">
						<h:outputText value="#{newsBean.currentNews.date}">
							<f:convertDateTime pattern="#{appResources['format.date']}" />
						</h:outputText>
					</p>
					<p class="news-label">
						<h:outputText  value="#{appResources['label.viewnews.brief']}" />
					</p>
					<p class="news-content" id="news-brief">
						#{newsBean.currentNews.brief}
					</p>
					<p class="news-label">
						<h:outputText  value="#{appResources['label.viewnews.content']}" />
					</p>
					<p class="news-content"> 
						#{newsBean.currentNews.content}
					</p>			
					<h:commandButton  styleClass="news-button" value="#{appResources['label.viewnews.button.delete']}" action="#{newsBean.delete}"/>
					<h:commandButton  styleClass="news-button" value="#{appResources['label.viewnews.button.edit']}" action="#{newsBean.edit}" />				
				</h:form>
			</ui:define>		
		</ui:composition>
	</body>
</html>